<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <a href="/bmi.html">BMI生态质量指数测试</a>
    <input type="button" value="发送get请求" @click="f1()">
</div>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data:{

        },
        method:{
            f1(){
               axios.get("/helloAxios?info=tom").then(function (response){
                   alert(response.data);
                })
            }
        }
    })
</script>
</body>
</html>